package router

import (
	"daily-test19/handlers"
	"github.com/gin-gonic/gin"
)

func Router() *gin.Engine {
	// 1.创建路由
	r := gin.Default()
	r.POST("/login", handlers.Login)
	r.POST("/add", handlers.Add)
	r.GET("/lists", handlers.Lists)
	r.GET("/list", handlers.List)
	return r
}
